<template>
  <div>
    <van-nav-bar
  title="标题"
  left-text="返回"
  right-text="按钮"
  left-arrow
  @click-left="onClickLeft"
  @click-right="onClickRight"
/>
   <van-swipe :autoplay="5000" indicator-color="white">
  <van-swipe-item v-for="(image, index) in images" :key="index">
    <img v-lazy="image" />
  </van-swipe-item>
</van-swipe>
<van-tabbar v-model="active">
  <van-tabbar-item icon="home-o">标签</van-tabbar-item>
  <van-tabbar-item icon="search">标签</van-tabbar-item>
  <van-tabbar-item icon="friends-o">标签</van-tabbar-item>
  <van-tabbar-item icon="setting-o">标签</van-tabbar-item>
</van-tabbar>
  </div>
</template>

<script>
import Vue from 'vue';
import { Lazyload } from 'vant';

Vue.use(Lazyload);
export default {
  data() {
    return {
      images: [
         require('@/assets/banners/01.jpg'),
        require('@/assets/banners/02.jpg'),
        require('@/assets/banners/03.jpg'),
        require('@/assets/banners/04.jpg'),
      ],
        active: 0,
    };
  },
};
</script>
<style scoped>
  
  img{
      width: 100%;
      
  }
</style>